<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <base href="<%=basePath%>">
    <link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css" />


 

<title>首页</title>

</head>
<body>
<script type="text/javascript">  
        var basePath = '<%=basePath%>';  
        var userName = '${sessionScope.userInfo}';  
        if(null == userName || userName=="" ){
        window.location.href="users/login.html";
        }
        //alert(userName);
    </script>
<%-- 登录用户：${sessionScope.userInfo}
<%=request.getSession().getAttribute("userInfo") %> --%>
<!--  <h1>Ajax服务端请求</h1>
<div class="content" id="div1">
<div>一共发起了<span id="span1" style="color:Red">0</span>次请求。</div>
</div>
<form action="user/userlist.do" method="post">
<input type="submit" value="sds">
</form>
<a herf="user/userlist">dfdf</a>
-->
<script type="text/javascript" src="extjs/ext-all.js"></script>
<script type="text/javascript" src="extjs/ext-lang-zh_CN.js"></script>
<script type="text/javascript" src="js/treejson/treejson.js"></script>
</body>
</html>
